package com.frogs.ucenter.dao.ibatis;

import java.sql.SQLException;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Required;
import org.springframework.stereotype.Repository;

import com.frogs.framework.base.dao.ibatis.BaseDaoIbatis;
import com.frogs.framework.util.PageList;
import com.frogs.ucenter.dao.TotalFlowRelationDao;
import com.frogs.ucenter.entity.TotalFlowRelation;
import com.ibatis.sqlmap.client.SqlMapClient;

@Repository("flowRelationDao")
public class TotalFlowRelationDaoImpl extends BaseDaoIbatis<TotalFlowRelation> implements TotalFlowRelationDao {

    public TotalFlowRelationDaoImpl() {
        super();
        setNameSpace( "total_flow_relation" );
    }

    @Required
    @Autowired
    public void setSqlMapClientAutowired(SqlMapClient sqlMapClient) {
        super.setSqlMapClient( sqlMapClient );
    }

	@Override
	public PageList<TotalFlowRelation> selectLeftJoinByMap(
			Map<String, Object> params)
			throws SQLException {
		return queryList(getNameSpace() + ".selectLeftJoinByMap", params, false);
	}
}